<html>

<head lang="zh-CN">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>商家点评</title>
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/css_1.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/reset.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/s.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/weui.css" />
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/jquery-1.7.1.min.js"></script>
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/dp.js"></script>
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/layer.js"></script>
</head>

<body id="life_add">
    <header>
        <i class="icon-goback" style="cursor:pointer;" onclick="window.location.href='{php echo $this->createMobileUrl('business',array('op' => 'detail','id' => $dpid))}'"></i>
        <div class="title">添加点评</div>
        <i class="icon-menu" style="margin-right:0.05rem;"></i>
    </header>
    <form method="post" action="" role="form">
        <div class="page-center-box">
            <div class="scroll">
                <div class="list-have-pic">
                    <a href="">
                        <div class="list-box shop-box">
                            <div class="list-img">
                                <img src="{php echo tomedia($dp['picurl'])}">
                            </div>
                            <div class="list-content">
                                <p class="shop-title">
                                    <span class="left shop-title-length">{$dp['sjname']}</span>
                                    <span class="right shop-title-color"></span>
                                </p>
                                <!-- <div class="shop-wei"><span>￥120</span>/位</div> -->
                                <p class="c_h">{$dp['address']}</p>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="shop-star-main">
                    <div class="shop-star-num">
                        <div class="comment left">
                            <span class="left">评价 </span>
                            <div class="left">
                                <style>
                                #jq_star img {
                                    float: left;
                                }
                                
                                input,
                                textarea {
                                    border: 1px solid #dedede;
                                }
                                </style>
                                <span id="jq_star" style="width: 100px; cursor: pointer;">
     
                                <input id="jq_star-score" type="hidden" name="data[score]" value="0">
                                </span>
                                <script type="text/javascript" src="{MODULE_URL}template/mobile/style/style1/static/js/jquery.raty.min.js"></script>
                                <script>
                                $(document).ready(function() {

                                    $("#jq_star").raty({
                                        numberMax: 5,
                                        path: '{MODULE_URL}template/mobile/style/style1/static/image/',
                                        starOff: 'star-off.png',
                                        starOn: 'star-on.png',
                                        scoreName: 'data[score]'
                                    });

                                });
                                </script>
                            </div>
                        </div>
                        <div class="comment right">
                            <span class="left">口味 </span>
                            <div class="left">
                                <style>
                                #jq_star1 img {
                                    float: left;
                                }
                                </style>
                                <span id="jq_star1" style="width: 100px; cursor: pointer;">

                            <input id="jq_star1-score" type="hidden" name="data[d1]" value="0"></span>
                                <script type="text/javascript" src="{MODULE_URL}template/mobile/style/style1/static/js/jquery.raty.min.js"></script>
                                <script>
                                $(document).ready(function() {

                                    $("#jq_star1").raty({
                                        numberMax: 5,
                                        path: '{MODULE_URL}template/mobile/style/style1/static/image/',
                                        starOff: 'star-off.png',
                                        starOn: 'star-on.png',
                                        scoreName: 'data[d1]'
                                    });

                                });
                                </script>
                            </div>
                        </div>
                    </div>
                    <div class="shop-star-num shop-border">
                        <div class="comment left">
                            <span class="left">环境 </span>
                            <div class="left">
                                <style>
                                #jq_star2 img {
                                    float: left;
                                }
                                </style>
                                <span id="jq_star2" style="width: 100px; cursor: pointer;">
   
                            <input id="jq_star2-score" type="hidden" name="data[d2]" value="0"></span>
                                <script type="text/javascript" src="{MODULE_URL}template/mobile/style/style1/static/js/jquery.raty.min.js"></script>
                                <script>
                                $(document).ready(function() {

                                    $("#jq_star2").raty({
                                        numberMax: 5,
                                        path: '{MODULE_URL}template/mobile/style/style1/static/image/',
                                        starOff: 'star-off.png',
                                        starOn: 'star-on.png',
                                        scoreName: 'data[d2]'
                                    });

                                });
                                </script>
                            </div>
                        </div>
                        <div class="comment right">
                            <span class="left">服务 </span>
                            <div class="left">
                                <style>
                                #jq_star3 img {
                                    float: left;
                                }
                                </style>
                                <span id="jq_star3" style="width: 100px; cursor: pointer;">
          
                            <input id="jq_star3-score" type="hidden" name="data[d3]" value="0"></span>
                                <script type="text/javascript" src="{MODULE_URL}template/mobile/style/style1/static/js/jquery.raty.min.js"></script>
                                <script>
                                $(document).ready(function() {

                                    $("#jq_star3").raty({
                                        numberMax: 5,
                                        path: '{MODULE_URL}template/mobile/style/style1/static/image/',
                                        starOff: 'star-off.png',
                                        starOn: 'star-on.png',
                                        scoreName: 'data[d3]'
                                    });

                                });
                                </script>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="shop-Consumption">
                    <span class="left">消费</span>
                    <span class="right"><input type="text" name="data[cost]" style="width: 80px;">（元）以平均消费为准</span>
                </div>
                <div class="shop-Consumption">
                    <span class="left">说点</span>
                    <span class="right"><textarea cols="33" rows="5" name="data[contents]" placeholder="还记得这家店吗？写点评记录生活、分享体验"></textarea></span>
                </div>
                <!--  <div class="Upload-img-box">
                    <div class="Upload-btn">
                        <input type="file" id="fileToUpload" name="fileToUpload">上传图片</div>
                    <div class="Upload-img" id="jq_imgs">
                    </div>
                    <script type="text/javascript" src="/themes/default/Mobile/statics/js/ajaxfileupload.js"></script>
                    <script>
                    function ajaxupload() {
                        $.ajaxFileUpload({
                            url: '/app/upload/upload/model/dianping.html',
                            type: 'post',
                            fileElementId: 'fileToUpload',
                            dataType: 'text',
                            secureuri: false, //一般设置为false
                            success: function(data, status) {
                                var str = '<div class="list-img"><img width="200" height="100" src="/attachs/' + data + '">  <input type="hidden" name="photos[]" value="' + data + '" />  <a href="javascript:void(0);">取消</a></div>';
                                $("#jq_imgs").append(str);
                                $("#fileToUpload").unbind('change');
                                $("#fileToUpload").change(function() {
                                    ajaxupload();
                                });
                            }
                        });
                    }

                    $(document).ready(function() {
                        $("#fileToUpload").change(function() {
                            ajaxupload();
                        });
                        $(document).on("click", "#jq_imgs a", function() {
                            $(this).parent().remove();
                        });
                    });
                    </script>
                </div> -->
                <div class="shop-tj">
                    <input id="total_scole" class="aniu" type="submit" value="提交" >
                    <!-- <button type="submit" name="submit" value="yes" class="aniu" style="width:100%;">提交</button> -->
                    <input type="hidden" name="token" value="{$_W['token']}" />
                </div>
               <!--  <div id="toast" style="display: none;">
                    <div class="weui_mask_transparent"></div>
                    <div class="weui_toast">
                        <i class="weui_icon_toast"></i>
                        <p class="weui_toast_content">成功提交</p>
                    </div>
                </div> -->
                <!-- <div class="shop-back">宝贝不满意,我要<a href="">申请退款&gt;&gt;</a></div> -->
            </div>
        </div>
    </form>
    <div id="loading">
        <div class="bao_loading">正在加载中....</div>
    </div>
    <div class="blank">&nbsp;</div>
    <iframe id="baocms_frm" name="baocms_frm" style="display:none;"></iframe>
     <!-- <script type="text/javascript">
    $(function() {
        $("#showToast").click(function(event) {
            var data = $("#content").val();
            if (content == '') {
                alert('描述不能为空！');
                return false
            };

            $.ajax({
                url: "",
                dataType: 'json',
                data: {
                    content: content,
                    category: category,
                    address: address,
                    picIds :picIds
                },
                success: function(s) {
                    if (s.status == 1) {
                        $('#toast').show();
                        setTimeout(function() {
                            $('#toast').hide();
                            window.location.href="";
                        }, 3000);
                    };
                }
            })


        });
    })
    </script> -->
    <style>
    .li_table table {
        width: 100%;
        text-align: center;
    }
    
    footer #jq_total {
        width: auto;
    }
    </style>
</body>

</html>
